package com.wynet.shopsapp.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@TableName("t_goods")
@NoArgsConstructor
public class Integral {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private Integer u_id;
    private Integer integral;

    public Integral(Integer u_id, Integer integral) {
        this.u_id = u_id;
        this.integral = integral;
    }
}
